package com.sq.partner.manager.service;

import java.util.List;

import com.sq.partner.manager.mybatis.model.GatewayAgency;
import com.sq.partner.manager.mybatis.model.GatewayAgencyChannel;
import com.sq.partner.manager.mybatis.model.GatewayUser;
import com.sq.partner.manager.mybatis.model.TreeDto;
import com.sq.partner.manager.util.Page;

/**
 * @author zzguo
 * */

public interface IGatewayAgencyInfoConfigService {

	public Page<GatewayAgency> queryInfoByCriteria(Page<GatewayAgency> page,GatewayUser user) throws Exception;
	
	public boolean addAgencyInfo(GatewayAgency agency) throws Exception;

	public boolean updateAgencyInfo(GatewayAgency agency) throws Exception;
	
	public boolean deleteAgencyInfo(GatewayAgency agency) throws Exception;

	public GatewayAgency queryAgencyInfoByCode(GatewayAgency agency) throws Exception;
	
	public int checkIsExistFacadeUser(String agencyCode) throws Exception;
	
	public List<TreeDto> queryChannelInfoListsForTree(String deptCode) throws Exception;
	
	public List<GatewayAgencyChannel> queryPrivilegesByAgencyCode(GatewayAgencyChannel gac) throws Exception;

	public boolean addPrivilegesToOneAgency(GatewayAgencyChannel gac) throws Exception;
	
	public boolean delPrivilegesByAgencyCode(GatewayAgencyChannel gac) throws Exception;

}
